require('env2')('./.env');
const schedule = require('node-schedule');
const task  = require('./task');
const rule  = new schedule.RecurrenceRule();
// const times = [1,6,11,16,21,26,31,36,41,46,51,56];
const times = [1,16,31,46];

rule.second  = times;
function scheduleCronstyle(){
    schedule.scheduleJob(rule, function(){
        task();
    });
}

scheduleCronstyle();
